package com.dgut.forum.services;

import com.dgut.forum.model.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleService {
    @Transactional
    int create(Article article);

    List<Article> selectAll();
    List<Article> selectAllByBoardId(Long boardId);

    List<Article> selectAllByUserId(Long userId);
    Article selectDetailById(Long Id);

    void modify(Long id,String title,String content);

    Article selectById(Long Id);
    void delete(Long Id);


     void thumbsUpById(Long Id);

    void addOneToArticleReplyCount(Long Id);
}
